broadway: Cast g_object_ref() to the right type
authorEmmanuele Bassi <ebassi@gnome.org>
Sun, 11 Feb 2018 14:52:22 +0000 (14:52 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Sun, 11 Feb 2018 23:28:50 +0000 (23:28 +0000)
In GLib 2.56, g_object_ref() will check that you're assigning the return
value to a variable of the same type you're passing in.

gdk/broadway/broadway-server.c

index 3d5f29b289c5e10f180e8702c83b483e03abc467..b53f4edf124262b630ac84a2fdc3e00c68d46dbe 100644 (file)
@@ -1267,7 +1267,7 @@ handle_incoming_connection (GSocketService    *service,
     }
   else
     {
-      request->connection = g_object_ref (connection);
+      request->connection = G_IO_STREAM (g_object_ref (connection));
     }
 
   in = g_io_stream_get_input_stream (request->connection);